import argparse as argparse

from forum.models.user import User
import sys


class Command(argparse):
    def handle_noargs(self, **options):
        msg = None
        if msg == None:
            print('to run this command, please first edit the file %s' % __file__)
            sys.exit(1)
        for u in User.objects.all():
            u.message_set.create(message=msg % u.username)
